package com.xneure.database.define.table;

import java.util.ArrayList;
import java.util.List;
import com.xneure.database.DataBaseType;

public class SqlDefinition{
	protected enum DefinitionType{
		create,update
	}

	private List<String> sql;
	private int version;
	private DataBaseType dbType;
	private DefinitionType type;

	public List<String> getSql(){
		return sql;
	}

	public void setSql(List<String> sql){
		this.sql = sql;
	}

	public DataBaseType getDbType(){
		return dbType;
	}

	public void setDbType(DataBaseType dbType){
		this.dbType = dbType;
	}

	public int getVersion(){
		return version;
	}

	public void setVersion(int version){
		this.version = version;
	}

	public void addSql(String sql){
		if(null == this.sql){
			this.sql = new ArrayList<>();
		}
		this.sql.add(sql);
	}

	public DefinitionType getType(){
		return type;
	}

	public void setType(DefinitionType type){
		this.type = type;
	}
}
